package com.ssm.sfzy.service.impl;

import com.ssm.sfzy.entity.TeacherBooks;
import com.ssm.sfzy.entity.TeacherGoods;
import com.ssm.sfzy.mapper.TeacherBooksMapper;
import com.ssm.sfzy.service.TeacherBooksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName TeacherBooksServiceImpl
 * @Author xiaoliu
 * @Date 2024年04月07日 15:20
 */
@Service
public class TeacherBooksServiceImpl implements TeacherBooksService {

    @Autowired
    private TeacherBooksMapper teacherBooksMapper;
    @Override
    public void add(TeacherBooks entity) {
        teacherBooksMapper.insert(entity);
    }

    @Override
    public void edit(TeacherBooks entity) {

    }

    @Override
    public void remove(Integer id) {
        teacherBooksMapper.delete(id);
    }

    @Override
    public void removeBatch(Integer[] ids) {

    }

    @Override
    public List<TeacherBooks> find(TeacherBooks entity) {
        return null;
    }

    @Override
    public Map<String, Object> findPage(Integer pageNum, Integer pageSize, TeacherBooks entity) {
        return null;
    }

    @Override
    public TeacherBooks findById(Integer id) {
        return null;
    }

    @Override
    public List<TeacherBooks> findAllBooks(Integer id) {
        List<TeacherBooks> teacherBooks = teacherBooksMapper.findAllBooks(id);
        return teacherBooks;
    }
}
